package com.qmx.qmxapp.constant;

import android.os.Environment;

/**
 * @author chengxiangtong
 * @date 2018/10/16
 */
public class AppConstant {

    public static final String Url = "http://api.smartqmx.com";
    public static final String HOSTNAME = "139.224.208.91";
    public static final int PORT = 17430;

    public static final String SDCARD_DIR = Environment.getExternalStorageDirectory().getAbsolutePath();
    public static final String DEFAULT_CACHE_DIR = SDCARD_DIR + "/PLDroidPlayer";

    public static final String APPID = "";
    public static final String USER_ID = "user_id";
    public static final String IDENTIFIER = "identifier";
    public static final String USER_SIG = "user_sig";
    public static final String ROOM_ID = "room_id";
    public static final String ROOM_NAME = "room_name";
    public static final String MOBILE = "mobile";
    public static final String AVATAR = "avatar";
    public static final String CLIENT_ID = "client_id";
    public static final String __TOKEN__ = "__token__";

    public static final int MESSAGE_EVENT_ID_NONE = 911; ///< 终端心跳包。
    public static final int MESSAGE_EVENT_ID_USER_SIGN_SUCCESS = 5001; ///< 登录验证token成功
    public static final int MESSAGE_EVENT_ID_USER_CACHE_SUCCESS = 5002; ///< 缓存
    public static final int MESSAGE_EVENT_ID_TABLE_TOKEN = 120;  ///< 获取表单动态令牌（当天有效，用户重新登录需刷新）
    public static final int MESSAGE_EVENT_ID_MEETING_KICK_USER = 5000; ///<主持踢人
    public static final int MESSAGE_EVENT_ID_MEETING_MAIN_ID = 5003; ///< 广播 切换主会场画面
    public static final int MESSAGE_EVENT_ID_MEETING_ROLL_CALL = 5006; ///< 会场人员收到点名消息【排除主持人】
    public static final int MESSAGE_EVENT_ID_MEETING_ROLLCALL_RECEIVE = 5007; ///< 主持人收到签到消息
    public static final int MESSAGE_EVENT_ID_MEETING_DESTROY_ROOM = 5008; ///< 销毁组即会议结束
    public static final int MESSAGE_EVENT_ID_MEETING_USER_LEAVE = 5009; ///<用户离开房间
    public static final int MESSAGE_EVENT_ID_USER_ALL_MUTE_2 = 5012; ///< 全体静音 （全部用户静音（禁止自解封））
    public static final int MESSAGE_EVENT_ID_USER_ALL_MUTE_1 = 5011; ///< 全体静音 （全部用户静音（允许自解封））
    public static final int MESSAGE_EVENT_ID_USER_MIC_OPEN = 5021; ///< 广播 开启麦克
    public static final int MESSAGE_EVENT_ID_USER_MIC_CLOSE = 5022;///< 广播 关闭麦克
    public static final int MESSAGE_EVENT_ID_USER_MIC_HELP = 5023; ///< 非广播（抄送请求给主持人）
    public static final int MESSAGE_EVENT_ID_USER_CHANGE_ROOT = 5032; ///< 广播全体（更改主持人，当前主持人位置空缺状态，才触发）
    public static final int MESSAGE_EVENT_ID_USER_APPLY_ROOT = 5031; ///< 转发申请主持人消息给主持人，需要主持人同意让位
    public static final int MESSAGE_EVENT_ID_USER_CAMERA_OPEN = 5041; ///< 广播开启摄像头
    public static final int MESSAGE_EVENT_ID_USER_CAMERA_CLOSE = 5042;///< 广播关闭摄像头

    public static final int MESSAGE_EVENT_ID_WHITEBOARD_OPEN = 8001;  ///< 打开共享白板（群体消息）
    public static final int MESSAGE_EVENT_ID_WHITEBOARD_CLOSE = 8002;  ///< 关闭共享白板（群体消息）
    public static final int MESSAGE_EVENT_ID_WHITEBOARD_DATA = 8003;  ///< 传输画点（群体消息，白板共享过程中传输画点）
    public static final int MESSAGE_EVENT_ID_IMAGES_OPEN = 8011;  ///< 打开共享图片（群体消息）
    public static final int MESSAGE_EVENT_ID_IMAGES_CLOSE = 8012;  ///< 关闭共享图片（群体消息）
    public static final int MESSAGE_EVENT_ID_IMAGES_EVENT = 8013;  ///< 发送轮播手势

    public static final int MESSAGE_EVENT_ID_LIVE_SAY_LIST = 9920; ///< 直播聊天内容
    public static final int MESSAGE_EVENT_ID_LIVE_SAY = 9910; ///< 群发消息给直播厅所有人

    public static final int MESSAGE_EVENT_ID_ERROR = 110; ///< 公共危险操作，服务器将主动断开连接
    public static final int MESSAGE_EVENT_ID_PARAMETER_ERROR = 1100;  ///< 请求参数错误或密码错误
    public static final int MESSAGE_EVENT_ID_TOKEN_ERROR = 1101;  ///< Token令牌错误or用户不存在
    public static final int MESSAGE_EVENT_ID_ROOT_PERMISSION_ERROR = 1102;  ///< 非主持人，越权操作（主持人才有资格）
    public static final int MESSAGE_EVENT_ID_SHARE_PERMISSION_ERROR = 1103;  ///< 非共享者，越权操作（主持人,事件者才有资格）
    public static final int MESSAGE_EVENT_ID_SHARE_EVENT_ERROR = 1104;  ///< 共享事件冒泡（白板事件未结束,操作了共享图片事件）
    public static final int MESSAGE_EVENT_ID_MEETING_ROOM_MISS = 1105;  ///< 查不到会议号，会议室不存在


}
